package com.CI.Contact.Model
{
	public class ModelLocator
	{
		import com.adobe.cairngorm.model.ModelLocator;
	    
		public class ModelLocator implements ModelLocator
		{	
			private static var modelLocator : com.CI.Contact.Model.ModelLocator;
			
			public function ModelLocator()
			{
				if (com.CI.Contact.Model.ModelLocator != null)
					throw new Error("Only one ModelLocator instance should be instantiated");	
			}
			
			public static function getInstance(): com.CI.Contact.Model.ModelLocator
			{
				if(modelLocator == null)
				{
					modelLocator = new com.CI.Contact.Model.ModelLocator();	
				}
				return modelLocator;
			} 
		}
	}
}